package com.jxnd.sunflower.mapper;


import com.jxnd.sunflower.domain.RUser;
import com.jxnd.sunflower.domain.bo.LoginBO;
import com.jxnd.sunflower.domain.bo.RetrievePsswordBO;
import com.jxnd.sunflower.domain.dto.UserDTO;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface RUserMapper {

    //查询用户是否注册
    String queryEmailExist(String email);

    //注册用户
    int insertUser(RUser rUser);

    //找回密码
    int RetrievePassword(RetrievePsswordBO bo);

    //登录
    RUser login(LoginBO bo);

    UserDTO queryUserInfo(Integer id);
    
}